﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;

namespace Landpy.CruiseControlNet.FacadeInterface.ConfigurationModule
{
    public class User : IPrimaryKey
    {
        [Browsable(false)]
        [XmlIgnore]
        public Guid Id { get; private set; }

        [Category("Basic")]
        [Description("The user name of a user. This should match the user name in Source Control.")]
        [XmlAttribute("name")]
        public string Name { get; set; }

        [Category("Basic")]
        [Description("The Internet-style email address of the user (e.g., joe@example.com).")]
        [XmlAttribute("address")]
        public string Address { get; set; }

        [Category("Basic")]
        [Description("The group that the user is in. This needs to match the name of one of the <group> elements.")]
        [XmlAttribute("group")]
        public string Group { get; set; }

        public User()
        {
            this.Id = Guid.NewGuid();
        }
    }
}